package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 
 *
 * @author chenzh
 * @since 2024-03-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_xzjh_org")
@Schema(name = "EduXzjhOrg", title = "", description = "实体类")
public class EduXzjhOrg extends Model<EduXzjhOrg> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "xzjhId", description = "主键")
    @TableId(value = "xzjh_id", type = IdType.ASSIGN_ID)
    private Long xzjhId;

    @Schema(name = "xzjhOrgId", description = "学在金华id")
    @TableField(value = "xzjh_org_id")
    private String xzjhOrgId;

    @Schema(name = "xzjhOrgName", description = "学在金华单位名称")
    @TableField(value = "xzjh_org_name")
    private String xzjhOrgName;

    @Schema(name = "orgId", description = "新生报名单位id")
    @TableField(value = "org_id")
    private String orgId;

    @Schema(name = "orgName", description = "新生报名名称")
    @TableField(value = "org_name")
    private String orgName;

    @Schema(name = "createName", description = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", description = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", description = "逻辑删除标志 0 正常 1 删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Override
    public Serializable pkVal() {
        return this.xzjhId;
    }
}
